/**
 * banner相关接口 
 */
var request = require('./request.js');
var utils = require('../utils/utils.js');

module.exports = {
  /**
   * 获取banner区图片
   * @param bannerType 展示区类型:HOME(首页区)/MEAL(点餐区)/NEWMEMBERADSENSE(新会员注册广告)/PROMOTIONADSENSE(促销广告)/抢购广告GRABADSENSE
   */
  getBannerList: function (bannerType) {
    var params = {
      bannerType: bannerType
    }
    return request.get('/newretail/api/mall/banner/getBannerList', params)
  },
  /**
   * 获取banner区图片
   * @param bannerType 展示区类型:HOME(首页区)/MEAL(点餐区)/NEWMEMBERADSENSE(新会员注册广告)/PROMOTIONADSENSE(促销广告)/抢购广告GRABADSENSE
   * @param storeId 门店ID
   */
  getStoreBannerList: function (bannerType, storeId) {
    var params = {
      bannerType: bannerType,
      storeId: storeId
    }
    return request.get('/newretail/api/mall/banner/getBannerList', params)
  },
  /**
   * 获取广告图片
   */
  getAdsenseList: function (storeId) {
    var params = {
      storeId: storeId
    }
    return request.get('/newretail/api/mall/adsense/getAdsenseList', params)
  },
}